import { createRouter, createWebHistory } from 'vue-router';

const configRoutes = [
  {
    path: '/login',
    name: 'Login',
    meta: {
      skip: true // 跳过,表示不在菜单中显示,此参数必传
    },
    component: () =>
      import(/* webpackChunkName: 'login' */ '@/views/login/Login.vue')
  },
  {
    path: '/:path(.*)',
    name:'404',
    component:()=> import('@/views/404.vue')
  }
]


export const routes = [...configRoutes]
const router = createRouter({
  history: createWebHistory(),
  routes:configRoutes
})

export default router
